/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import java.awt.Button;
import java.awt.event.ItemEvent;
import java.util.Locale;
import javax.swing.JButton;

/**
 *
 * @author T7ragon3ow
 */
public class fMain extends javax.swing.JFrame {

    /**
     * Creates new form fMain
     */
    fNhanVien fNVien;
    fNhaHang fNHang;
    fKhachHang fKHang;
    fTiecCuoi fTCuoi;
    fMonAn fMAn;
    fNguyenLieu fNLieu;
    fQuyDinh fQDinh;
    fThongKe fTKe;
    fKhuyenMai fKMai;
    public fMain() {
        initComponents();
        fDangNhap fdn = new fDangNhap(this,true);
        fdn.setVisible(true);
        fNVien = new fNhanVien();
        fNHang = new fNhaHang() ;
        fKHang = new fKhachHang();
        fTCuoi = new fTiecCuoi();
        fMAn = new fMonAn();
        fNLieu = new fNguyenLieu();
        fQDinh = new fQuyDinh();
        fTKe = new fThongKe();
        fKMai = new fKhuyenMai();
        jFrameChild.add(fNVien);
        jFrameChild.add(fNHang);
        jFrameChild.add(fKHang);
        jFrameChild.add(fTCuoi);
        jFrameChild.add(fMAn);
        jFrameChild.add(fQDinh);
        jFrameChild.add(fTKe);
        jFrameChild.add(fKMai);
        jFrameChild.add(fNLieu);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel3 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jFrameChild = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        btnMenuMonAn = new javax.swing.JToggleButton();
        btnMenuNguyenLieu = new javax.swing.JToggleButton();
        btnMenuTiecCuoi = new javax.swing.JToggleButton();
        btnMenuNhanVien = new javax.swing.JToggleButton();
        btnMenuThongKe = new javax.swing.JToggleButton();
        btnMenuNhaHang = new javax.swing.JToggleButton();
        btnMenuKhachHang = new javax.swing.JToggleButton();
        btnMenuKhuyenMai = new javax.swing.JToggleButton();
        btnMenuQuyDinh = new javax.swing.JToggleButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(142, 197, 255));
        setForeground(java.awt.Color.white);
        setResizable(false);

        jPanel3.setBackground(new java.awt.Color(204, 204, 255));
        jPanel3.setMaximumSize(new java.awt.Dimension(0, 0));
        jPanel3.setMinimumSize(new java.awt.Dimension(0, 0));
        jPanel3.setPreferredSize(new java.awt.Dimension(1205, 800));

        jLabel1.setFont(new java.awt.Font("Times New Roman", 3, 24)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(255, 51, 51));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setLabelFor(this);
        jLabel1.setText("QUẢN LÝ NHÀ HÀNG TIỆC CƯỚI");
        jLabel1.setToolTipText("");
        jLabel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jLabel1.setName("");
        jLabel1.setPreferredSize(new java.awt.Dimension(1170, 70));

        jFrameChild.setBackground(new java.awt.Color(204, 204, 255));
        jFrameChild.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jFrameChild.setMaximumSize(new java.awt.Dimension(0, 0));
        jFrameChild.setMinimumSize(new java.awt.Dimension(0, 0));
        jFrameChild.setPreferredSize(new java.awt.Dimension(1170, 550));

        javax.swing.GroupLayout jFrameChildLayout = new javax.swing.GroupLayout(jFrameChild);
        jFrameChild.setLayout(jFrameChildLayout);
        jFrameChildLayout.setHorizontalGroup(
            jFrameChildLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 1166, Short.MAX_VALUE)
        );
        jFrameChildLayout.setVerticalGroup(
            jFrameChildLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 546, Short.MAX_VALUE)
        );

        jPanel4.setBackground(new java.awt.Color(204, 204, 255));
        jPanel4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel4.setPreferredSize(new java.awt.Dimension(1170, 105));

        btnMenuMonAn.setBackground(new java.awt.Color(255, 255, 255));
        btnMenuMonAn.setText("Mon an H`");
        btnMenuMonAn.setToolTipText("Quản lý món ăn");
        btnMenuMonAn.setAlignmentX(0.5F);
        btnMenuMonAn.setBorder(null);
        btnMenuMonAn.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnMenuMonAn.setIconTextGap(0);
        btnMenuMonAn.setMargin(new java.awt.Insets(0, 0, 0, 0));
        btnMenuMonAn.setMaximumSize(new java.awt.Dimension(0, 0));
        btnMenuMonAn.setMinimumSize(new java.awt.Dimension(0, 0));
        btnMenuMonAn.setPreferredSize(new java.awt.Dimension(80, 80));
        btnMenuMonAn.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                btnMenuMonAnItemStateChanged(evt);
            }
        });

        btnMenuNguyenLieu.setBackground(new java.awt.Color(255, 255, 255));
        btnMenuNguyenLieu.setText("Nguyen Lieu H`");
        btnMenuNguyenLieu.setToolTipText("Quản lý món ăn");
        btnMenuNguyenLieu.setAlignmentX(0.5F);
        btnMenuNguyenLieu.setBorder(null);
        btnMenuNguyenLieu.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnMenuNguyenLieu.setIconTextGap(0);
        btnMenuNguyenLieu.setMargin(new java.awt.Insets(0, 0, 0, 0));
        btnMenuNguyenLieu.setMaximumSize(new java.awt.Dimension(0, 0));
        btnMenuNguyenLieu.setMinimumSize(new java.awt.Dimension(0, 0));
        btnMenuNguyenLieu.setPreferredSize(new java.awt.Dimension(80, 80));
        btnMenuNguyenLieu.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                btnMenuNguyenLieuItemStateChanged(evt);
            }
        });

        btnMenuTiecCuoi.setBackground(new java.awt.Color(255, 255, 255));
        btnMenuTiecCuoi.setText("Tiec Cuoi H`");
        btnMenuTiecCuoi.setToolTipText("Quản lý món ăn");
        btnMenuTiecCuoi.setAlignmentX(0.5F);
        btnMenuTiecCuoi.setBorder(null);
        btnMenuTiecCuoi.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnMenuTiecCuoi.setIconTextGap(0);
        btnMenuTiecCuoi.setMargin(new java.awt.Insets(0, 0, 0, 0));
        btnMenuTiecCuoi.setMaximumSize(new java.awt.Dimension(0, 0));
        btnMenuTiecCuoi.setMinimumSize(new java.awt.Dimension(0, 0));
        btnMenuTiecCuoi.setPreferredSize(new java.awt.Dimension(80, 80));
        btnMenuTiecCuoi.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                btnMenuTiecCuoiItemStateChanged(evt);
            }
        });

        btnMenuNhanVien.setBackground(new java.awt.Color(255, 255, 255));
        btnMenuNhanVien.setText("Nhan Vien - Tin");
        btnMenuNhanVien.setToolTipText("Quản lý món ăn");
        btnMenuNhanVien.setAlignmentX(0.5F);
        btnMenuNhanVien.setBorder(null);
        btnMenuNhanVien.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnMenuNhanVien.setIconTextGap(0);
        btnMenuNhanVien.setMargin(new java.awt.Insets(0, 0, 0, 0));
        btnMenuNhanVien.setMaximumSize(new java.awt.Dimension(0, 0));
        btnMenuNhanVien.setMinimumSize(new java.awt.Dimension(0, 0));
        btnMenuNhanVien.setPreferredSize(new java.awt.Dimension(80, 80));
        btnMenuNhanVien.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                btnMenuNhanVienItemStateChanged(evt);
            }
        });

        btnMenuThongKe.setBackground(new java.awt.Color(255, 255, 255));
        btnMenuThongKe.setText("Thong Ke Hai");
        btnMenuThongKe.setToolTipText("Quản lý món ăn");
        btnMenuThongKe.setAlignmentX(0.5F);
        btnMenuThongKe.setBorder(null);
        btnMenuThongKe.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnMenuThongKe.setIconTextGap(0);
        btnMenuThongKe.setMargin(new java.awt.Insets(0, 0, 0, 0));
        btnMenuThongKe.setMaximumSize(new java.awt.Dimension(0, 0));
        btnMenuThongKe.setMinimumSize(new java.awt.Dimension(0, 0));
        btnMenuThongKe.setPreferredSize(new java.awt.Dimension(80, 80));
        btnMenuThongKe.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                btnMenuThongKeItemStateChanged(evt);
            }
        });

        btnMenuNhaHang.setBackground(new java.awt.Color(255, 255, 255));
        btnMenuNhaHang.setText("Nha Hang Tin");
        btnMenuNhaHang.setToolTipText("Quản lý món ăn");
        btnMenuNhaHang.setAlignmentX(0.5F);
        btnMenuNhaHang.setBorder(null);
        btnMenuNhaHang.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnMenuNhaHang.setIconTextGap(0);
        btnMenuNhaHang.setMargin(new java.awt.Insets(0, 0, 0, 0));
        btnMenuNhaHang.setMaximumSize(new java.awt.Dimension(0, 0));
        btnMenuNhaHang.setMinimumSize(new java.awt.Dimension(0, 0));
        btnMenuNhaHang.setPreferredSize(new java.awt.Dimension(80, 80));
        btnMenuNhaHang.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                btnMenuNhaHangItemStateChanged(evt);
            }
        });

        btnMenuKhachHang.setBackground(new java.awt.Color(255, 255, 255));
        btnMenuKhachHang.setText("Khach Hang  Hai");
        btnMenuKhachHang.setToolTipText("Quản lý món ăn");
        btnMenuKhachHang.setAlignmentX(0.5F);
        btnMenuKhachHang.setBorder(null);
        btnMenuKhachHang.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnMenuKhachHang.setIconTextGap(0);
        btnMenuKhachHang.setMargin(new java.awt.Insets(0, 0, 0, 0));
        btnMenuKhachHang.setMaximumSize(new java.awt.Dimension(0, 0));
        btnMenuKhachHang.setMinimumSize(new java.awt.Dimension(0, 0));
        btnMenuKhachHang.setPreferredSize(new java.awt.Dimension(80, 80));
        btnMenuKhachHang.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                btnMenuKhachHangItemStateChanged(evt);
            }
        });

        btnMenuKhuyenMai.setBackground(new java.awt.Color(255, 255, 255));
        btnMenuKhuyenMai.setText("Khuyen Mai Hai");
        btnMenuKhuyenMai.setToolTipText("Quản lý món ăn");
        btnMenuKhuyenMai.setAlignmentX(0.5F);
        btnMenuKhuyenMai.setBorder(null);
        btnMenuKhuyenMai.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnMenuKhuyenMai.setIconTextGap(0);
        btnMenuKhuyenMai.setMargin(new java.awt.Insets(0, 0, 0, 0));
        btnMenuKhuyenMai.setMaximumSize(new java.awt.Dimension(0, 0));
        btnMenuKhuyenMai.setMinimumSize(new java.awt.Dimension(0, 0));
        btnMenuKhuyenMai.setPreferredSize(new java.awt.Dimension(80, 80));
        btnMenuKhuyenMai.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                btnMenuKhuyenMaiItemStateChanged(evt);
            }
        });

        btnMenuQuyDinh.setBackground(new java.awt.Color(255, 255, 255));
        btnMenuQuyDinh.setText("Quy Dinh Tin");
        btnMenuQuyDinh.setToolTipText("Quản lý món ăn");
        btnMenuQuyDinh.setAlignmentX(0.5F);
        btnMenuQuyDinh.setBorder(null);
        btnMenuQuyDinh.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnMenuQuyDinh.setIconTextGap(0);
        btnMenuQuyDinh.setMargin(new java.awt.Insets(0, 0, 0, 0));
        btnMenuQuyDinh.setMaximumSize(new java.awt.Dimension(0, 0));
        btnMenuQuyDinh.setMinimumSize(new java.awt.Dimension(0, 0));
        btnMenuQuyDinh.setPreferredSize(new java.awt.Dimension(80, 80));
        btnMenuQuyDinh.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                btnMenuQuyDinhItemStateChanged(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(32, 32, 32)
                .addComponent(btnMenuNhanVien, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(44, 44, 44)
                .addComponent(btnMenuKhachHang, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(50, 50, 50)
                .addComponent(btnMenuNhaHang, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(48, 48, 48)
                .addComponent(btnMenuTiecCuoi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(50, 50, 50)
                .addComponent(btnMenuMonAn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(49, 49, 49)
                .addComponent(btnMenuNguyenLieu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(55, 55, 55)
                .addComponent(btnMenuThongKe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(47, 47, 47)
                .addComponent(btnMenuQuyDinh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)
                .addComponent(btnMenuKhuyenMai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(38, 38, 38))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(btnMenuNhanVien, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnMenuKhachHang, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnMenuNhaHang, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnMenuTiecCuoi, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnMenuMonAn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(btnMenuNguyenLieu, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(btnMenuQuyDinh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(btnMenuKhuyenMai, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnMenuThongKe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jFrameChild, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(20, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jFrameChild, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jLabel1.getAccessibleContext().setAccessibleParent(jPanel3);
        jFrameChild.getAccessibleContext().setAccessibleParent(jPanel3);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    
    private void btnMenuMonAnItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_btnMenuMonAnItemStateChanged
        // TODO add your handling code here:
          if (evt.getStateChange() == ItemEvent.SELECTED) {
            fMAn.setVisible(true);
        } else {
           fMAn.setVisible(false);
            
        }
    }//GEN-LAST:event_btnMenuMonAnItemStateChanged

    private void btnMenuNguyenLieuItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_btnMenuNguyenLieuItemStateChanged
        // TODO add your handling code here:
           if (evt.getStateChange() == ItemEvent.SELECTED) {
            fNLieu.setVisible(true);
        } else {
           fNLieu.setVisible(false);
        }
    }//GEN-LAST:event_btnMenuNguyenLieuItemStateChanged

    private void btnMenuTiecCuoiItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_btnMenuTiecCuoiItemStateChanged
        // TODO add your handling code here:
           if (evt.getStateChange() == ItemEvent.SELECTED) {
            fTCuoi.setVisible(true);
        } else {
           fTCuoi.setVisible(false);
        }
    }//GEN-LAST:event_btnMenuTiecCuoiItemStateChanged

    private void btnMenuNhanVienItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_btnMenuNhanVienItemStateChanged
        // TODO add your handling code here:
       if (evt.getStateChange() == ItemEvent.SELECTED) {
            fNVien.setVisible(true);
        } else {
           fNVien.setVisible(false);
        }
    }//GEN-LAST:event_btnMenuNhanVienItemStateChanged

    private void btnMenuThongKeItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_btnMenuThongKeItemStateChanged
        // TODO add your handling code here:
           if (evt.getStateChange() == ItemEvent.SELECTED) {
            fTKe.setVisible(true);
        } else {
           fTKe.setVisible(false);
        }
    }//GEN-LAST:event_btnMenuThongKeItemStateChanged

    private void btnMenuNhaHangItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_btnMenuNhaHangItemStateChanged
        // TODO add your handling code here:
           if (evt.getStateChange() == ItemEvent.SELECTED) {
            fNHang.setVisible(true);
        } else {
           fNHang.setVisible(false);
        }
    }//GEN-LAST:event_btnMenuNhaHangItemStateChanged

    private void btnMenuKhachHangItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_btnMenuKhachHangItemStateChanged
        // TODO add your handling code here:
           if (evt.getStateChange() == ItemEvent.SELECTED) {
            fKHang.setVisible(true);
        } else {
           fKHang.setVisible(false);
        }
    }//GEN-LAST:event_btnMenuKhachHangItemStateChanged

    private void btnMenuKhuyenMaiItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_btnMenuKhuyenMaiItemStateChanged
        // TODO add your handling code here:
           if (evt.getStateChange() == ItemEvent.SELECTED) {
            fKMai.setVisible(true);
        } else {
           fKMai.setVisible(false);
        }
    }//GEN-LAST:event_btnMenuKhuyenMaiItemStateChanged

    private void btnMenuQuyDinhItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_btnMenuQuyDinhItemStateChanged
        // TODO add your handling code here:
           if (evt.getStateChange() == ItemEvent.SELECTED) {
            fQDinh.setVisible(true);
        } else {
           fQDinh.setVisible(false);
        }
    }//GEN-LAST:event_btnMenuQuyDinhItemStateChanged

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(fMain.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(fMain.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(fMain.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(fMain.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new fMain().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JToggleButton btnMenuKhachHang;
    private javax.swing.JToggleButton btnMenuKhuyenMai;
    private javax.swing.JToggleButton btnMenuMonAn;
    private javax.swing.JToggleButton btnMenuNguyenLieu;
    private javax.swing.JToggleButton btnMenuNhaHang;
    private javax.swing.JToggleButton btnMenuNhanVien;
    private javax.swing.JToggleButton btnMenuQuyDinh;
    private javax.swing.JToggleButton btnMenuThongKe;
    private javax.swing.JToggleButton btnMenuTiecCuoi;
    private javax.swing.JPanel jFrameChild;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    // End of variables declaration//GEN-END:variables
}
